//
//  SongsMenuDataModel.m
//  NewMusic
//
//  Created by chuxinyu123 on 15/11/21.
//  Copyright © 2015年 Going. All rights reserved.
//

#import "SongsMenuDataModel.h"

@implementation SongsMenuDataModel

- (void)dealloc
{
    [_tagTitle release];
    [_tagID release];
    [super dealloc];
}
- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

+ (SongsMenuDataModel *)songsMenuDataModelWithDictionary:(NSDictionary *)dictionary
{
    SongsMenuDataModel *song = [[SongsMenuDataModel alloc] initWithDictionary:dictionary];
    return song;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqual:@"tag"]) {
        self.tagTitle = value;
    }
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqual:@"tagID"]) {
        self.tagID = [NSString stringWithFormat:@"%@", value];
    }else{
        [super setValue:value forKey:key];
    }
}
@end
